package com.my_musc_service.listener;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author Zhu Dunfeng
 * @date 2021/8/19 11:19
 */
//@Component
public class ApplicationStartedEventListener implements ApplicationListener<ApplicationStartedEvent> {
    @Override
    public void onApplicationEvent(ApplicationStartedEvent applicationStartedEvent) {
        printSuccess();
    }

    private void printSuccess(){
        System.out.println("                                                                             \n" +
                " /'\\_/`\\                                                       __            \n" +
                "/\\      \\    __  __               ___ ___     __  __    ____  /\\_\\     ___   \n" +
                "\\ \\ \\__\\ \\  /\\ \\/\\ \\    _______ /' __` __`\\  /\\ \\/\\ \\  /',__\\ \\/\\ \\   /'___\\ \n" +
                " \\ \\ \\_/\\ \\ \\ \\ \\_\\ \\  /\\______\\/\\ \\/\\ \\/\\ \\ \\ \\ \\_\\ \\/\\__, `\\ \\ \\ \\ /\\ \\__/ \n" +
                "  \\ \\_\\\\ \\_\\ \\/`____ \\ \\/______/\\ \\_\\ \\_\\ \\_\\ \\ \\____/\\/\\____/  \\ \\_\\\\ \\____\\\n" +
                "   \\/_/ \\/_/  `/___/> \\          \\/_/\\/_/\\/_/  \\/___/  \\/___/    \\/_/ \\/____/\n" +
                "                 /\\___/                                                      \n" +
                "                 \\/__/                                                       \n" +
                "                                                                             ");
    }
}
